<h2>Visar alla företag - Bransch A-Ö / Företag A-Ö </h2>

<?php if(strlen($message) > 0 ) :?>
	<span class="message"><?php echo $message;?></span>
<?php endif;?>

<table class="admin_datatable">
	<thead>
		<tr><td>Bransch / Företag</td><td>Händelse</td></tr>
	</thead>
	<tbody>
	<?php foreach($list as $item): ?>
		<tr>
			<td colspan="2">
				<strong><?php echo $item->name;?></strong>
			</td>
		</tr>
		<?php foreach($item->companies as $comp) : ?>
		<tr>
			<td class='indent'>
				<?php print $comp->name;?>
			</td>
			<td>
				<a href='/admin/companies/edit/<?php echo $comp->id;?>'>Redigera</a><!-- - 
				<a href='/admin/companies/remoasv=!=!Sde/<?php echo $comp->id;?>' class='delete' onclick='return confirm("Vill du verkligen ta bort användaren?");'>Ta bort</a>-->
			</td>
		</tr>
		<?php endforeach; ?>
	<?php endforeach; ?>
	</tbody>
</table>